package cn.stronglink.asset.module.assetmanage.instock.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import cn.stronglink.asset.model.PresetDetail;

public interface PresetDetailMapper {
	
	public List<PresetDetail> queryDetailList(@Param("presetId") Long presetId);
	
	public void removePresetDetail(@Param("id")Long id);

	public void insertPresetDetail(PresetDetail presetDetail);

	public void updatePresetDetail(PresetDetail presetDetail);

	public PresetDetail qryDetailById(@Param("id") Long id);

	public List<String> queryAllDetailList();

	public int createPresetDetailList(@Param("presetDetailList") List<PresetDetail> presetDetailList);

	public List<PresetDetail> qryTerminalCheckList();

	public List<PresetDetail> queryBjcDetailList(@Param("presetId") Long presetId);
	
	public Integer checkAssetNoNum(@Param("assetNo") String assetNo,@Param("presetDetailId") Long presetDetailId);

	public PresetDetail getPresetDetailByRfid(@Param("rfid") String rfid);
	
	public PresetDetail qryDetailBySn(@Param("sn") String sn);

	public void updatePresetDetailBySn(PresetDetail pd);

	public PresetDetail qryPresetDetailBySn(@Param("sn") String serialNo);

	public void removePresetDetailByPresetId(@Param("id") Long id);

	public void removePresetDetailByCmdbId(@Param("assetId") Long assetId);

	public int checkSn(Map<String, Object> params);

	public int checkRfidNo(Map<String, Object> map);

}
